class AddProtectedMethodToGalleryTypeToAccomodateApprovalGalleries < ActiveRecord::Migration
  def self.up
    add_column :gallery_types, :protected, :boolean
    proofing_gallery = GalleryType.find_by_for("proofing")
    unless proofing_gallery.nil?
      proofing_gallery.protected = true
      proofing_gallery.save!
    end
  end

  def self.down
    remove_column :gallery_types, :protected
  end
end
